<%= stylesheet_link_tag "basic_info" %>
<%= stylesheet_link_tag "bls" %>
<%= javascript_include_tag "bls" %>
<div id="notice" class="notice"><%= notice %></div>

<div class="tabs">
  <a class="tab  inline-block selected" href="###">
    提单列表
  </a>
</div>

<div class="right_btn_div">
  <%= link_to "新建", new_bl_path, {:class => "inline-block s-btn"} %>
</div>

<table class="grid">
  <tr>
    <th></th>
    <th style="width:130px;">Bl no</th>
    <th>Status</th>
    <th style="width: 100px;">Voyage</th>
    <th>Route</th>
    <th>Course</th>
    <th>Port</th>
    <th>Forward</th>
    <th>Cy</th>
    <th>Shipowner</th>
    <th style="width:100px"></th>
  </tr>

  <% @bls.each do |bl| %>
      <tr>
        <td><%= bl.id %></td>
        <td><%= bl.bl_no %></td>
        <td><%= bl_status bl.status %></td>
        <td><%= bl.voyage %></td>
        <td><%= bl.route %></td>
        <td><%= bl.course %></td>
        <td><%= bl.port.name %></td>
        <td title="<%= bl.forward.name %>"><%= bl.forward.name%></td>
        <td><%= bl.cy.name %></td>
        <td><%= bl.shipowner.name %></td>
    <td><%= link_to '详细', bl %>
          <%= link_to '编辑', edit_bl_path(bl) %>
          <%= link_to '删除', bl, confirm: 'Are you sure?', method: :delete %></td>
      </tr>
  <% end %>
</table>
